﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>后台管理系统 - 湖州人才网</title>
    <script src="scripts/boot.js" type="text/javascript"></script>
    <style type="text/css">
        .b_border{ border:solid 1px #c1c1c1; height:25px;}
    </style>
</head>
<body>
    <div style="margin: 0px auto; width: 1023px;">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td style="background: url(Styles/back_01.gif) no-repeat; height: 117px; width: 422px;">
                    &nbsp;
                </td>
                <td style="background: url(Styles/back_02.gif) no-repeat; height: 117px; width: 310px;">
                    &nbsp;
                </td>
                <td style="background: url(Styles/back_03.gif) no-repeat; height: 117px; width: 291px;">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td style="background: url(Styles/back_04.gif) no-repeat; height: 338px; width: 422px;">
                    &nbsp;
                </td>
                <td style="background: url(Styles/back_05.gif) no-repeat; height: 338px; width: 310px;">
                    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="top:-5px;">
                        <tr>
                            <td style="width: 30px;">&nbsp;</td>
                            <td colspan="2" style="font-size:14px; height:40px; text-align:left">用户名：<input id="user" name="user" type="text" class="b_border" style="width:180px;" /></td>
                            <td style="width: 30px;">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 30px;">&nbsp;</td>
                            <td colspan="2"style="font-size:14px; height:40px; text-align:left">密　码：<input id="pw" name="pw" type="password" class="b_border" style="width:180px;" /></td>
                            <td style="width: 30px;">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 30px;">&nbsp;</td>
                            <td style="font-size:14px; height:40px; width: 130px; text-align:left">验证码：<input id="yzm" name="yzm" type="text" class="b_border" style="width:60px;"/></td>
                            <td><img border="0" alt="点击图片刷新" style="width:60px; height:26px;" align="absmiddle" src="png.aspx" onclick="this.src=this.src+'?'"/></td>
                            <td style="width: 30px;">&nbsp;</td>
                        </tr>
                    </table>
                </td>
                <td style="background: url(Styles/back_06.gif) no-repeat; height: 338px; width: 291px;">
                    <table width="100%" cellpadding="0" cellspacing="0" border="0" style="top:-5px; text-align:left">
                        <tr>
                        <td>&nbsp;</td>
                        <td><input type="image" src="Styles/dl.png" style="width:86px; height:32px;" onclick="LoginClick()"/></td>
                        </tr>
                        <tr style="height:20px;"><td>&nbsp;</td></tr>
                        <tr>
                        <td>&nbsp;</td>
                        <td><input type="image" src="Styles/cz.png" style="width:86px; height:32px;" onclick="ResetClick()"/></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="background: url(Styles/back_07.gif) no-repeat; height: 295px; width: 422px;">
                    &nbsp;
                </td>
                <td style="background: url(Styles/back_08.gif) no-repeat; height: 295px; width: 310px;">
                    &nbsp;
                </td>
                <td style="background: url(Styles/back_09.gif) no-repeat; height: 295px; width: 291px;">
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
</body>
<script type="text/javascript">
    mini.parse();

    function LoginClick() {
        var user = $("#user").val();
        var pw = $("#pw").val();
        var yzm = $("#yzm").val();
        if (user == undefined || user == null || user == "") {
            ShowMessage("系统提示", "用户名不能为空！", 2);
            return;
        }
        if (pw == undefined || pw == null || pw == "") {
            ShowMessage("系统提示", "密码不能为空！", 2);
            return;
        }
        if (yzm == undefined || yzm == null || yzm == "") {
            ShowMessage("系统提示", "验证码不能为空！", 2);
            return;
        }
        mini.mask({ el: document.body, cls: 'mini-mask-loading', html: '验证登录信息，请稍后...' });

        $.ajax({
            url: "data/logincheck.aspx?method=Login",
            type: "post",
            data: { user: user, pw: pw, yzm: yzm },
            success: function (text) {
                mini.unmask(document.body);
                if (text == '通过') {
                    window.location = "main.html";
                }
                else {
                    ShowMessage("系统提示", text, 2);
                }
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                mini.unmask(document.body);
                ShowMessage("系统提示", "服务器链接失败！", 3);
            }
        });
    }

    function ResetClick() {
        $("#user").val("");
        $("#pw").val("");
        $("#yzm").val("");
    }
    </script>
</html>
